# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  before_filter :require_login, :except => [:login, :logout, :fetch, :rush, :about, :umoc, :reset, :reset_password, :password]

  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => '5c90186db8ed143d9d41a49e31c0e452'

  def require_login
    if session[:user].nil?
      redirect_to :controller => "apo", :action => "login"
    end
  end

end
